package com.zhuiyun.project.api.plan.fitnessPlan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.plan.fitnessPlan.entity.FitnessPlan;
import com.zhuiyun.project.api.plan.fitnessPlan.model.FitnessPlanModel;
import com.zhuiyun.project.api.plan.fitnessType.entity.FitnessType;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FitnessPlanMapper extends BaseMapper<FitnessPlan> {
    /**
    * @Author 杨珅
    * @Description todo 健身计划分页查询
    * @Date 2023/11/13 9:01
    * @Return  * @param null
    */
    public List<FitnessPlanModel> selectAll(PageRequest pageRequest, String fitnessPlanName, String venueUniqueIdentifier,Integer fitnessSeriesId);
    /**
     * @Author 杨珅
     * @Description todo 根据用户id查询计划
     * @Date 2023/11/13 9:01
     * @Return  * @param null
     */
    public List<FitnessPlanModel> selectPlanById(Integer memberId);
    /**
     * @Author 杨珅
     * @Description todo 健身计划新增
     * @Date 2023/11/13 9:01
     * @Return  * @param null
     */
    public int insertFitnessPlan(FitnessPlanModel fitnessPlan);
    /**
     * @Author 杨珅
     * @Description todo 健身计划修改
     * @Date 2023/11/13 9:01
     * @Return  * @param null
     */
    public int updateFitnessPlan(FitnessPlan fitnessPlan);
    /**
     * @Author 杨珅
     * @Description todo 健身计划逻辑删除
     * @Date 2023/11/13 9:01
     * @Return  * @param null
     */
    public int deleteFitnessPlan(FitnessPlan fitnessPlan);
}
